<!--
 * @Descripttion:
 * @Version: 1.0
 * @Author: 何志龙
 * @Date: 2023-05-23 17:31:54
 * @LastEditors: 何志龙
 * @LastEditTime: 2023-07-27 17:11:35
-->
<template>
    <div class="lianjianren">
        <tableMobile :data11="content" :Isshowbutton="Isshowbutton" :thList="thList"/>
    </div>
</template>

<script>
import { GSA_Search } from '../../../common/commonApi';
import tableMobile from './tableMobile.vue';
export default {
    data() {
        return {
            content:[],
            thList: [
          {
            title: '姓名',
            isSort: false,// 是否进行排序, // 是否单独显示背景颜色
            sortField: 'XM',// 排序字段
            backgroundColor:"rgb(242, 245, 247)",
            width:"10"
          },
          {
            title: '身份证号',
            isSort: false,
            sortField: 'SFZH',
            backgroundColor:"rgb(242, 245, 247)",
            width:"20"
          },
          {
            title: '家庭地址',
            isSort: false,
            sortField: 'JTZZ',
            backgroundColor:"rgb(242, 245, 247)",
            width:"20"
          },
          {
            title: '性别',
            isSort: false,
            sortField: 'SEXX',
            backgroundColor:"rgb(242, 245, 247)",
            width:"10"
          },
          {
            title: '年龄',
            isSort: false,
            sortField: 'NL',
            backgroundColor:"rgb(242, 245, 247)",
            width:"10"
          },
          {
            title: '手机号',
            isSort: false,
            sortField: 'PHONE',
            backgroundColor:"rgb(242, 245, 247)",
            width:"10"
          },
        ],
        }
    },
    components:{
        tableMobile
    },
    props:{
        rowData:Object,
        Isshowbutton:Boolean
    },
    methods: {
        //获取联建人信息
        async getLianJianRenData() {
            let data = [
                {
                    "field": "TO_ROW_GUID",
                    "value": this.rowData.ROW_GUID
                }
            ]
            const res = await GSA_Search('851cbf77-b4e9-46f0-9e99-b710e3cc5db4',data)
            this.content = res.Data
        }
    },
    created() {
        this.getLianJianRenData()
    },
    mounted() {

    }
}
</script>
